package com.xy.common.exception;

/**
 * @author XY
 * @version 1.0
 * @date 2021/1/19 15:06
 * @Description
 */
public class NoStockException extends RuntimeException {

    private Long skuId;

    public NoStockException(Long skuId){
        super("商品id："+skuId+"；没有足够库存");
    }

    public NoStockException(){

    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
